define(window.backboneCommon.getControllerDefine("Crowd"), function (require,Model,ModelBaseData,ModelCustomer) {
    var model=new Model();
    var modelBaseData=new ModelBaseData();
    var modelCustomer=new ModelCustomer();
    return Backbone.Collection.extend({
        model:  model,
        initialize: function () {
            model.set({modelBaseData:modelBaseData});
            model.set({modelCustomer:modelCustomer});
        },
        getPageList:function(param){
            model.getPageList(param);
        },
        getCustomList:function(){
            model.getCustomList();
        },
        getCustomer:function () {
            modelCustomer.getAllList();
        },
        deleteInfo:function (param) {
            model.deleteInfo(param)
        },
        initAfterCustomInfo:function(){
            modelBaseData.getCrowdBag();
        },
        getCustomInfo:function (id) {
            model.getInfoCustom(id);
        },
        saveCustomInfo:function (json) {
            json.id ? model.updateInfoCustom(json) : model.addInfoCustom(json);
        },
        getSimilarInfo:function (id) {
            model.getInfoSimilar(id);
        },
        saveSimilarInfo:function (json) {
            json.id ? model.updateInfoSimilar(json) : model.addInfoSimilar(json);
        }
    });
});